package com.mingshine.cloud.controller;

import com.mingshine.cloud.sender.RabbitMqSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Autowired
    RabbitMqSender rabbitMqSender;

    @RequestMapping("/test")
    public String test() {
        rabbitMqSender.send("======数据传输==测试======");
        return "成功";
    }
}
